<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<FrontEnd.Models.AccountInfo>" %>
<%@ Import Namespace="FrontEnd.Views.Membership"%>

	<script type="text/javascript">
		$(document).ready(function() {
			$("#registration").validate();
		});
	</script>
	 
    <%= Html.ValidationSummary() %>
      
    <% using (Html.BeginIdentificableForm("registration")) {%>

        <fieldset>
            <legend>Account Information</legend>				
            <p>
                <label for="email">E-mail:</label>
                <%= Html.RequiredEmailTextBox("email")%>
                <%= Html.ValidationMessage("email") %>
            </p>
            <p>
                <label for="displayName">Display Name:</label>
                <%= Html.RequiredTextBox("displayName")%>
                <%= Html.ValidationMessage("displayName")%>
            </p>
            <p>
                <label for="password">Password:</label>
                <%= Html.RequiredPasswordTextBox("password")%>
                <%= Html.ValidationMessage("password") %>
            </p>
            <p>
                <label for="confirmPassword">Confirm password:</label>
                <%= Html.RequiredTextBox("confirmPassword")%>
                <%= Html.ValidationMessage("confirmPassword") %>
            </p>
            <p>
                <input type="submit" value="Register" /> or <%=Html.ActionLink("Cancel", "Index", "Home") %>
            </p>
        </fieldset>

    <% } %>   


